#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
#include<assert.h>
char* my_strncpy(char* dest, const char* src, size_t num)
{
	assert(src != NULL);
	assert(dest != NULL);
	for (int i = 0; i < num; i++)
	{
		*(dest+i) = *(src+i);
	}
	return dest;
}

int main()
{
	char arr[] = "adasda";
	char brr[] = "asda";
	my_strncpy(arr, brr, 2);
	printf("%s", arr);
	return 0;
}